package com.zr.kufangkuqu.mapper;

import com.zr.depotarea.pojo.Depotarea;
import com.zr.kufangkuqu.pojo.DepotareadePotproperty;
import com.zr.kufangkuqu.pojo.KuQuSelectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * Created by star on 2019/7/16.
 */
@Mapper
public interface KuQuMapper {

    List<DepotareadePotproperty> queryPage(KuQuSelectVo kuQuSelectVo);
    int queryCount(KuQuSelectVo kuQuSelectVo);

    @Select("select * from depotarea_depotproperty where id=#{id}")
    KuQuSelectVo queryById(Integer id);

    @Update("update depotarea set areaStatus=#{areaStatus} where id=#{id}")
    int updateStatus(Depotarea depotarea);
}
